import { IVolumn } from './volume'
export interface ICuboid extends IVolumn {}

export class Cuboid implements ICuboid {
  constructor(
    public long: number,
    public width: number,
    public height: number
  ) {}

  bulk() {
    return this.long * this.width * this.height
  }

  area() {
    return (
      2 *
      (this.long * this.width +
        this.long * this.height +
        this.width * this.height)
    )
  }
}
